package com.zjw.forum.dao;

import com.zjw.forum.model.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper {
    int insert(Message row);

    int insertSelective(Message row);

    Message selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Message row);

    int updateByPrimaryKey(Message row);
    /**
     * 返回未读数
     */
    Integer selectNotReadCount(Long receiveUserId);

    /**
     * 返回message信息
     */
    List<Message> selectByreceiveUserId(Long receiveUserId);
}